﻿using System;
using System.Collections.Generic;
using LibQuestionIs.Models;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Input;

namespace Infos.InterviewApp.View
{
    /// <summary>
    /// Pagina base che fornisce caratteristiche comuni alla maggior parte delle applicazioni.
    /// </summary>
    public sealed partial class Bacheca : Infos.InterviewApp.Common.LayoutAwarePage
    {
        public Infos.InterviewApp.Common.LayoutAwarePage Page { get; set; }

        public Bacheca(Infos.InterviewApp.Common.LayoutAwarePage view)
        {
            Page = view;
            Page.IsEnabled = false;
            this.InitializeComponent();
            InfoBacheca.Text = DataFlowObject.InfoBacheca;
        }

        private void BtnCloseBacheca_Tapped(object sender, TappedRoutedEventArgs e)
        {
            Popup pop = (Popup)this.Parent;
            pop.IsOpen = false;
            Page.IsEnabled = true;
        }
    }
}
